import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import 'package:untitled/pages/counter.dart';
import 'package:untitled/routes/router.dart';
import 'package:untitled/pages/tabbar.dart';

void main() {
  runApp(
    MultiProvider(providers: [
      ChangeNotifierProvider(create:(_)=>Counter()),
    ],child: MyApp(),)
  );
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      // initialRoute: '/home',
      routes:routes,
      home: const BottomNavigationExample(),
    );
  }
}